<?php
/**
* @version		$Id: default_viewfrontend.php 118 2012-10-02 08:52:27Z michel $
* @package		Cashbag
* @subpackage 	Views
* @copyright	Copyright (C) 2013, . All rights reserved.
* @license #
*/

// no direct access
defined('_JEXEC') or die('Restricted access');

jimport('joomla.application.component.view');

 
class CashestimationViewEstimations  extends JViewLegacy
{
	public function display($tpl = null)
	{
		
		$app    = & JFactory::getApplication();
                $task   = $app->input->get('task');
                
                switch($task){
                    case'new_product':
                    {
                        $model  = new CashestimationModelEstimations();
                        $return['data'] = $model->newproduct();
                        echo json_encode($return);
                    }
                }
	}
}
?>